package org.genntii.warehousesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.genntii.warehousesystem.domain.entity.GoodsOrder;
import org.genntii.warehousesystem.domain.vo.OrderVO;

import java.math.BigDecimal;
import java.util.List;

public interface GoodsOrderService extends IService<GoodsOrder> {

    void createOrder(int goodsId, int num, int warehouseId, int userId, BigDecimal pricePer,int addressId);

    void statusUpdate(int id, int status);

    List<OrderVO> selectOrderByPage(int userId, int page);

    List<OrderVO> selectOrderByPageForWarehouse(int warehouseId, int page);

}
